xenbus_transaction_end() returns negative error code.
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Mon, 26 Sep 2005 15:31:33 +0000 (16:31 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Mon, 26 Sep 2005 15:31:33 +0000 (16:31 +0100)
Therefore need to test for -EAGAIN (not EAGAIN).

Signed-off-by: Keir Fraser <keir@xensource.com>
linux-2.6-xen-sparse/drivers/xen/blkback/xenbus.c
linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c
linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c
linux-2.6-xen-sparse/drivers/xen/tpmback/xenbus.c
linux-2.6-xen-sparse/drivers/xen/tpmfront/tpmfront.c

index aaea46f2315e81979418dcbb3faf7e1214a5fe31..ba64721bd6e7edfaa6d583e18f806b6e0d8aa100 100644 (file)
@@ -121,7 +121,7 @@ again:
        }
 
        err = xenbus_transaction_end(0);
-       if (err == EAGAIN)
+       if (err == -EAGAIN)
                goto again;
        if (err) {
                xenbus_dev_error(be->dev, err, "ending transaction",
index 90c20b072fa3c21f271f2eec8bd191cb6604b9a1..598fecc3d10d9523f173d4f627d1a552f252a0b6 100644 (file)
@@ -604,7 +604,7 @@ again:
 
        err = xenbus_transaction_end(0);
        if (err) {
-               if (err == EAGAIN)
+               if (err == -EAGAIN)
                        goto again;
                xenbus_dev_error(dev, err, "completing transaction");
                goto destroy_blkring;
index 39e96846afc9f48e0839023a24461d0f8c5174a0..b7273a5c518349175b9748209c18795b6734ff7d 100644 (file)
@@ -1161,7 +1161,7 @@ again:
 
        err = xenbus_transaction_end(0);
        if (err) {
-               if (err == EAGAIN)
+               if (err == -EAGAIN)
                        goto again;
                xenbus_dev_error(dev, err, "completing transaction");
                goto destroy_ring;
index 3bb1247a001298fadf81f4387ad91311f92bebc0..c9c417cabde2d8e01dba99007a9eb0c7f86f4f46 100644 (file)
@@ -129,7 +129,7 @@ again:
        }
 
        err = xenbus_transaction_end(0);
-       if (err == EAGAIN)
+       if (err == -EAGAIN)
                goto again;
        if (err) {
                xenbus_dev_error(be->dev, err, "end of transaction");
index a9535a08f40df757a93899e273726db170c61a80..43ae40bdce2310d20a64b2ddf63ddd112d6747c0 100644 (file)
@@ -364,7 +364,7 @@ again:
        }
 
        err = xenbus_transaction_end(0);
-       if (err == EAGAIN)
+       if (err == -EAGAIN)
                goto again;
        if (err) {
                xenbus_dev_error(dev, err, "completing transaction");